import request from "@/utils/request";

// 查询监控摄像头楼层分组列表
export function getMonitor(id) {
  return request({
    url: "/ruoyi-device/modelfloorgroup/getMonitor/" + id,
    method: "get",
  });
}

// 查询监控摄像头楼层分组列表
export function listModelfloorgroup(query) {
  return request({
    url: "/ruoyi-device/modelfloorgroup/list",
    method: "get",
    params: query,
  });
}

// 查询监控摄像头楼层分组详细
export function getModelfloorgroup(id) {
  return request({
    url: "/ruoyi-device/modelfloorgroup/" + id,
    method: "get",
  });
}

// 新增监控摄像头楼层分组
export function addModelfloorgroup(data) {
  return request({
    url: "/ruoyi-device/modelfloorgroup",
    method: "post",
    data: data,
  });
}

// 修改监控摄像头楼层分组
export function updateModelfloorgroup(data) {
  return request({
    url: "/ruoyi-device/modelfloorgroup",
    method: "put",
    data: data,
  });
}

// 删除监控摄像头楼层分组
export function delModelfloorgroup(id) {
  return request({
    url: "/ruoyi-device/modelfloorgroup/" + id,
    method: "delete",
  });
}
